@charset "UTF-8";

$img: url(http://pic.lvmama.com/img/flight/international/index.png);
$img2x: url(http://pic.lvmama.com/img/flight/international/index@2x.png);
$backgroundSize: 400px;

@mixin etc() {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

//<editor-fold desc="搜索">

.if-search {
  z-index: 1;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);

  position: absolute;
  top: 0;
  left: 0;
  width: 378px;
  font-size: 14px;
  transition: width 100ms;

  *margin-bottom: -20px;

  background-color: #fff;
  border: 1px solid #cccccc;

  .nova-radio-label {
    margin-right: 20px;
  }
  .nova-radio-label.nova-checked {
    font-weight: bold;
  }
}

.nova-select-toggle {
  b {
    width: 12px;
    height: 7px;
    position: absolute;
    top: 13px;
    right: 13px;
    background-image: $img;
    background-position: -100px 0;
    border: none;
  }
  i {
    display: none;
  }
}

.opened {
  .nova-select-toggle {
    b {
      background-position: -100px -10px;
    }
  }
}

//<editor-fold desc="搜索头部">
.ifs-header {
  //width: 378px;
  height: 46px;
  border-bottom: 1px solid #e3e3e3;
  h3 {
    font-weight: normal;
    font-size: 20px;
    float: left;
    width: 235px;
    line-height: 46px;
    padding-left: 20px;
    span {
      font-family: SimSun, sans-serif;
    }
  }
}

.ifs-type {
  line-height: 24px;
  margin: 15px 0 18px 20px;
  dt {
    color: #666;
    width: 65px;
    float: left;
  }
  dd {
    color: #666;
    width: 290px;
    float: left;
  }
  .nova-radio {
    margin-top: 5px;
    *vertical-align: 0;
  }
  small {
    color: #999999;
    cursor: help;
  }
  u {
    text-decoration: none;
    border-bottom: 1px dashed #999;
  }
}

.ifs-pre-order {
  color: #333;
  cursor: pointer;
  float: left;
  width: 114px;
  height: 22px;
  line-height: 22px;
  margin-top: 12px;
  font-size: 16px;
  i {

    background-image: $img;
    background-position: -200px -20px;
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: top;
    margin-right: 6px;
  }
  b {
    width: 8px;
    height: 13px;
    background-image: $img;
    background-position: -140px 0;
    display: inline-block;
    vertical-align: top;
    margin-top: 4px;
    margin-left: 6px;
  }
  &:hover {
    color: #e38;
    text-decoration: none;
    b {
      background-position: -150px 0;
    }
  }
}

//</editor-fold>

//<editor-fold desc="搜索主体">
.ifs-body {
}

.ifs-single {
  display: block;
  dl {
    margin: 0 0 15px 20px;
  }
  dt {
    color: #666;
    min-height: 1px;
    width: 65px;
    float: left;
  }
  dd {
    min-height: 1px;
    width: 290px;
    float: left;
  }
  .ifs-bs-input {
    float: left;
    border: 1px solid #cccccc;
    padding: 0 10px;
    width: 260-2-20px;
    height: 36-2px;
    line-height: 36-2px;
    vertical-align: middle;
  }
}

.ifs-straight {
  margin: 0 0 15px 20px;
  dt {
    min-height: 1px;
    width: 65px;
    float: left;
  }
  dd {
    min-height: 1px;
    width: 290px;
    float: left;
  }
}

.ifs-others {
  dl {
    line-height: 36px;
    margin: 0 0 15px 20px;
  }
  dt {
    color: #666;
    min-height: 1px;
    width: 65px;
    float: left;
  }
  dd {
    min-height: 1px;
    width: 290px;
    float: left;
  }
}

.ifs-o-select-small {
  float: left;
  font-size: 14px;
  width: 124px;
  margin-right: 10px;
  .nova-select {
    width: 122px;
  }
  .nova-select-toggle {
    width: 104px;
    line-height: 34px;
  }
}

.ifs-o-select {
  font-size: 14px;
  width: 238px;
  .nova-select {
    width: 240px;
  }
  .nova-select-toggle {
    width: 238px;
    line-height: 34px;
  }
}

.ifs-multiple {
  width: 798px;
  display: none;
}

.ifs-bo-error {
  width: 260px;
  display: none;
  margin: -10px 33px 15px 85px;
  .nova-tip {
    font-size: 14px;

  }
  .nova-tip.nova-tip-warning {
    margin-right: 0;
    padding-right: 0;
  }
  em {
    color: #ff9400;
  }
}

.if-search-form {
  display: block;
}

//<editor-fold desc="单程">
.ifs-single {
}

.ifs-bs-swap {
  z-index: 1;
  overflow: hidden;
  cursor: pointer;
  text-indent: -9999em;
  width: 24px;
  height: 50px;
  top: 17px;
  left: 260px;
  background-image: $img;
  background-position: 0 -20px;
  position: absolute;
  &:hover {
    background-position: -40px -20px;
  }
}

.ifs-bs-from {
  position: relative;
}

.ifs-bs-others {
  width: 200px;
}

.ifs-bs-input {
  border: 1px solid #CCC;
  height: 30px;
  &.disabled {
    background-color: #f5f5f5;
  }
}

.ifs-bs-from,
.ifs-bs-to {
  line-height: 36px;
  dd {
    position: relative;
  }
  i {
    pointer-events: none;
    width: 13px;
    height: 16px;
    background-image: $img;
    background-position: 0 0;
    //display: block;
    display: none;
    position: absolute;
    left: 235px;
    top: 8px;
  }
}

.ifs-bs-from-date,
.ifs-bs-to-date {
  line-height: 36px;
  dd {
    position: relative;
  }
  em {
    pointer-events: none;
    position: absolute;
    width: 34px;
    line-height: 14px;
    height: 14px;
    top: 11px;
    left: 200px;
    color: #999;
  }
  i {
    pointer-events: none;
    width: 14px;
    height: 14px;
    background-image: $img;
    background-position: -20px 0;
    display: block;
    position: absolute;
    top: 11px;
    left: 235px;
  }
  .ifs-bs-placeholder {
    display: none;
  }
  &.disabled {
    ::selection {
      background: transparent;
    }
    em {
      display: none;
    }
    .ifs-bs-input {
      color: #f5f5f5;
    }

    .ifs-bs-placeholder {
      pointer-events: none;
      padding-left: 10px;
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      color: #bbbbbb;
    }
  }
}

//</editor-fold>

//<editor-fold desc="多程">

.if-search.ifs-is-multiple {
  width: 798px;

  .ifs-bo-error {
    position: absolute;
    top: 60px;
    left: 0;
  }
  .ifs-single {
    display: none;
  }
  .ifs-multiple {
    display: block;
  }
  .ifs-straight {
    display: none;
  }
  .ifs-footer {
    display: none;
  }
  .ifs-type {
    //margin: 12px 0 14px 20px;
  }
  .ifs-header {
    width: 798px;
    h3 {

      width: 620px;
    }
  }
  .ifs-others {
    position: relative;
    width: 798px;
    *margin-bottom: 20px;
    dd {
      width: auto;
    }
  }
  .ifs-submit-box {
    width: 798px;
  }
  .ifs-passenger-type {
    float: left;
    dt {
      text-indent: -9999em;
      overflow: hidden;
    }
  }
  .ifs-berths-level {
    float: left;
    position: relative;
    margin-left: 0;
    dt {
      position: absolute;
      left: 9px;
      color: #999999;
    }
    .nova-select-toggle {
      width: 200-75+10px;
      padding-left: 75px;
      em {
      }
    }
  }
  .ifs-o-select-small {
    width: 210px;
    .nova-select {
      width: 210px;
    }
    .nova-select-toggle {
      width: 188px;
    }
  }

  .ifs-submit {
    width: 98px;
    margin: 0 0 20px 504px;
  }

}

.ifs-multiple {

}

.ifs-bm-item {
  margin: 5px 0;
}

.ifs-bm-add-btn {
  cursor: pointer;
  text-align: center;
  width: 661px;
  height: 34px;
  line-height: 34px;
  margin: 0 0 15px 84px;
  border: 1px dashed #CCC;
  i {
    display: inline-block;
    vertical-align: top;
    margin-top: 9px;
    background-image: $img;
    background-position: -160px 0;
    width: 13px;
    height: 13px;
    margin-right: 10px;
  }
  &:hover {
    color: #EE3388;
    border-color: #EE3388;
  }
}

.ifs-bm-input {
  border: 1px solid #CCC;
  height: 30px;
  line-height: 30;
  vertical-align: middle;
}

.ifs-bm-index,
.ifs-bm-from,
.ifs-bm-to,
.ifs-bm-from-date,
.ifs-bm-close {
  float: left;
}

.ifs-bm-from {

}

.ifs-bm-to {

}

.ifs-bm-from-date {
  .ifs-bm-input {
    width: 220-77-8px;
  }
}

.ifs-bm-close {
  cursor: pointer;
  margin-left: -10px;
  padding: 11px 9px;
  i {

    width: 11px;
    height: 11px;
    background-image: $img;
    background-position: -40px 0;
    display: block;
  }
}

.ifs-bm-item {
  margin: 0 0 15px 40px;
  label {
    position: relative;
    margin-right: 10px;
    b {
      pointer-events: none;
      position: absolute;
      line-height: 36px;
      color: #999;
      margin-left: 8px;
      font-weight: normal;

    }
  }
}

.ifs-bm-input {
  width: 208-77-8px;
  height: 34px;
  line-height: 34px;
  vertical-align: middle;
  padding: 0 8px 0 77px;
}

.ifs-bm-index {
  color: #fff;
  width: 36px;
  height: 36px;
  line-height: 36px;
  margin-right: 9px;
  text-align: center;
  font-size: 18px;
  background-color: #fea0cc;
  border-radius: 3px;
}

.ifs-bm-from,
.ifs-bm-to {
  line-height: 36px;
  dd {
    position: relative;
  }
  i {
    display: none;
    pointer-events: none;
    width: 13px;
    height: 16px;
    background-image: $img;
    background-position: 0 0;
    //display: block;
    position: absolute;
    left: 187px;
    top: 9px;
  }
}

.ifs-bm-from-date,
.ifs-bm-to-date {
  dd {
    position: relative;
  }
  em {
    pointer-events: none;
    position: absolute;
    width: 34px;
    line-height: 14px;
    height: 14px;
    top: 11px;
    left: 167px;
    color: #999;
  }
  i {
    pointer-events: none;
    width: 14px;
    height: 14px;
    background-image: $img;
    background-position: -20px 0;
    display: block;
    position: absolute;
    top: 11px;
    left: 200px;
  }
}

//</editor-fold>

//</editor-fold>

//<editor-fold desc="搜索底部">
.ifs-footer {

}

.ifs-pic {
  margin-top: 20px;
  width: 378px;
  height: 50px;
  background-image: $img;
  background-position: 0 -240px;
}

.ifs-straight {
  line-height: 16px;
  .nova-checkbox {
    margin-top: 2px;
  }
}

//</editor-fold>
.ifs-submit-box {
  margin-left: 85px;
}

.ifs-submit {
  width: 200px;
}

//</editor-fold>

//<editor-fold desc="自动提醒">
.ifs-search-city {
  z-index: 1;
  position: absolute;
  display: none;
  top: 0;
  left: 0;
  background-color: #fff;
  width: 487px;
  border: 1px solid #cccccc;
  -webkit-box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.15);
}

.ifs-sc-title {
  margin: 7px 0 0 15px;
  color: #999999;
  line-height: 34px;
}

.ifs-sc-tabs {
  height: 30px;
  margin: 0 15px 0 15px;

  overflow: hidden;
  font-size: 14px;
}

.ifs-sc-tab {
  cursor: pointer;
  position: relative;
  float: left;
  line-height: 28px;
  padding: 0 7px;
  margin-right: 13px;
  i {
    position: absolute;
    top: 23px;
    left: 50%;
    margin-left: -5px;
    display: none;
    width: 10px;
    height: 7px;
    background-image: $img;
    background-position: -320px 0;
  }
  &:hover {
    color: #ff0089;
  }
  &.active {
    color: #ff0089;
    border-bottom: 2px solid #ff0089;
    i {
      display: block;
    }
  }
}

.ifs-sc-panes {
  color: #666666;
  font-size: 14px;
}

.ifs-sc-pane {
  margin: 9px 15px 12px 22px;
  display: none;
  font-size: 0;
  a {
    &:hover {
      //color: #EE3388;
    }
    text-decoration: none;
    cursor: pointer;
    font-size: 12px;
    vertical-align: top;
    @include etc;
    display: inline-block;
    line-height: 28px;
    height: 28px;
    width: 90px;
    overflow: hidden;
  }
  &.active {
    display: block;
  }
}

.ifs-sc-close {
  position: absolute;
  margin: 9px 11px;
  top: 0;
  right: 0;
  cursor: pointer;
  i {
    display: block;
    width: 11px;
    height: 11px;
    background-image: $img;
    background-position: -40px 0;
  }
}

.ifs-search-auto {
  z-index: 1;
  background-color: #fff;
  border: 1px solid #CCC;
  width: 298px;
  line-height: 24px;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  -webkit-box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.15);
  font-size: 14px;
  .item {
    cursor: pointer;
    padding: 5px 10px;
    &:hover {
      color: #ff0089;
      background-color: #fff1f9;
    }
    &.active {
      color: #ff0089;
      background-color: #fff1f9;
    }
    em {
      color: #aaaaaa;
      margin-right: 8px;

    }
  }
  .item-name {
    margin-right: 8px;
  }
  .item-all {
    margin-right: 8px;
  }
  .item-city {
  }
  .item-plane {

    i {
      display: inline-block;
      vertical-align: top;
      margin: 9px 4px 0 9px;
      background-image: $img;
      background-position: -300px 0;
      width: 12px;
      height: 6px;
    }
  }
  .item-country {
    margin-right: 8px;
  }
}

.ifs-search-auto-empty {
  i {
    margin: 11px 5px 0 10px;
    vertical-align: top;
  }
  line-height: 37px;
}

//</editor-fold>

//<editor-fold desc="浮动">
.if-search .ifs-input-error {
  border-color: #ff0000;
}

.ifs-error-tip {
  border-color: #ff0000;

  position: absolute;
  z-index: 1;
}

.ifs-error-tip-triangle {
  width: 8px;
  height: 14px;
  background-image: $img;
  background-position: -340px 0;
  display: block;
  position: absolute;
  top: 10px;
  left: -8px;
}

//</editor-fold>

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5) {
  /* 当设备像素比不小于1.5的时候... */

  .ifs-bs-swap {
    background-image: $img2x;
    background-size: $backgroundSize;
  }
  .ifs-bs-from,
  .ifs-bs-to {
    i {
      background-image: $img2x;
      background-size: $backgroundSize;
    }
  }
  .ifs-bs-from-date,
  .ifs-bs-to-date {
    i {
      background-image: $img2x;
      background-size: $backgroundSize;
    }
  }
  .ifs-bm-add-btn {
    i {
      background-image: $img2x;
      background-size: $backgroundSize;
    }
  }
  .ifs-bm-close {
    i {
      background-image: $img2x;
      background-size: $backgroundSize;
    }
  }
  .ifs-bm-from,
  .ifs-bm-to {
    i {
      background-image: $img2x;
      background-size: $backgroundSize;
    }
  }
  .ifs-bm-from-date,
  .ifs-bm-to-date {
    i {
      background-image: $img2x;
      background-size: $backgroundSize;
    }
  }

}
